<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');
    $router->get('/type', 'HandbookController@type');
    $router->resource('navigation_lists', NavigationListController::class);
    $router->resource('navigation_types', NavigationTypeController::class);

    $router->resource('de_users', DepartmentUserController::class);//前端用户账号
    $router->resource('departments', DepartmentController::class);//部门
    $router->resource('types', HandbookTypeController::class);//文档类型
    $router->resource('handbooks', HandbookController::class);//文档列表



});
